package edu.br.activitys;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.gym4all.R;

public class TrainingTypePage extends Activity {

	@Override
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		this.setContentView(R.layout.training_type_page);
		Button hyperButton = (Button) this.findViewById(R.id.hipertrophyButton);
		Button cardioButton = (Button) this.findViewById(R.id.cardioButton);

		hyperButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(TrainingTypePage.this,
						MuscleTypePage.class);
				TrainingTypePage.this.startActivity(intent);
			}
		});

		cardioButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(TrainingTypePage.this,
						CardioExercisesPage.class);
				TrainingTypePage.this.startActivity(intent);
			}
		});
	}
}
